package com.weiwu.weiwustore.pojo;

import com.weiwu.weiwustore.entity.Apply_record;
import com.weiwu.weiwustore.utils.DateUtil;
import lombok.Data;

import java.util.List;

/**
 * 前端我的申请详情封装类
 */
@Data
public class ApplyVo {
    // 申请单概述
    private String applicationid;
    private String type;
    private String price;
    // 流程详情
    private String instore;
    private String outstore;
    private String state;

    private String applicantid;
    private String applytime;
    private String applyremark;

    private String reviewerid;
    private String reviewpass;
    private String reviewtime;
    private String reviewremark;

    private String checkerid;
    private String checkpass;
    private String checktime;
    private String checkremark;
    // 材料详情
    private List<MaterialVo> materials;

    public ApplyVo(){}
    public ApplyVo(Apply_record apply_record){
        this.applicationid=apply_record.getApplicationid();
        this.type = apply_record.getType();

        this.applyremark=apply_record.getApplyremark();
        this.applytime= DateUtil.getSimpleDate(apply_record.getApplytime());

        this.reviewremark= apply_record.getReviewremark();
        this.reviewtime= DateUtil.getSimpleDate(apply_record.getReviewtime());
        //this.reviewpass = (apply_record.getReviewpass()).equals(1)? "通过":"不通过";

        this.checkremark= apply_record.getCheckremark();
        this.checktime= DateUtil.getSimpleDate(apply_record.getChecktime());
        //this.checkpass = (apply_record.getCheckpass()).equals(1)? "通过":"不通过";


    }
}
